package sample8;

public class Person implements Propeties{
	
	int age;
	String name;
	
	Person(int age,String name){
		this.age = age;
		this.name = name;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Override
	public void toPropeties() {
		System.out.println("class=" + this.getClass().getSimpleName());
		System.out.println("age=" + age);
		System.out.println("name=" + name);
		
	}
}
